//
//  FXOptionalDirection.swift
//  FXControls
//
//  Created by 范晓鑫 on 2023/7/11.
//

import Foundation

/// 可选方向
public struct FXOptionalDirection: OptionSet {
    public let rawValue: Int
    public init(rawValue: Int) {
        self.rawValue = rawValue
    }
    public static let top = FXOptionalDirection(rawValue: 1 << 0)
    public static let bottom = FXOptionalDirection(rawValue: 1 << 1)
    public static let left = FXOptionalDirection(rawValue: 1 << 2)
    public static let right = FXOptionalDirection(rawValue: 1 << 3)
    
    public static let all: FXOptionalDirection = [.top, .bottom, .left, .right]
    public static let empty: FXOptionalDirection = []
}
